package com.jk.service.Impl;

import com.alipay.api.AlipayApiException;
import com.jk.entity.AlipayBean;
import com.jk.service.PayService;
import com.jk.utils.Alipay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
@SuppressWarnings("all")
public class PayServiceImpl implements PayService {

    @Autowired
    private Alipay alipay;

    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public String aliPay(AlipayBean alipayBean,Integer userId) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }


}
